<template>
	<div class="main">
		<van-field label="标题" v-model="data.Title" name="title" readonly>
		</van-field>

		<!-- 单选框 -->
		<van-field
			class="input_text"
			label='受理部门'
			
			:border="false"
      readonly
		>
			<template #input>
				<van-radio-group v-model="data.CompanyPCode" direction="horizontal" >
					<van-radio
						v-for="(item, index1) in data.CompanyList"
						:key="index1"
						:name="item.ID"
						style="margin:10px 10px 0 0"
						>{{ item.Name }}</van-radio>
				</van-radio-group>
			</template>
		</van-field>
		
		<FileUpload
        @CallBack="_fileUploadCb"
        :attachs="data.Attachs"
        :labelName="'附件'"
        :mustInput="true"
        :allowEdit="false"
      />

		

		<van-field
			label="反馈内容"
			rows="3"
			autosize
			type="textarea"
			v-model="data.Contents"
      readonly
		>
		</van-field>


	</div>
</template>

<script>
import { formatDate, getDate } from '@/utils/getDate'
import store from '@/store/index'
export default {
	
	data() {
		return {
			id: this.$route.query.id,
			data: {
				
			},
			menuList: [],
			mobile: '',
			message: '',
			radio: '1',
			checkbox: false,
			checkboxGroup: [],
			value: '',
			showCalendar: false,
			activeNames: ['1'],
		
			showPopup: false,
			MannerItemPopup: false,
			userId: [],
			show: false,
			Component: '',
			CASNo: '',
		}
	},
	beforeMount () {
		this.data = []

		let title = '查看反馈'
		if (this.id != 0) {
			this.getDetail()
		} 
		store.commit('updateTitle', title)
	},
	created() {
		

	},
	activated() {},
	methods: {
		getDetail() {
			let params = { id: this.id };
			this.$axios
				.get('/YatFeedback/GetDetail', { params: params })
				.then((res) => {
				this.data = res.data;
				});
		},
		_fileUploadCb(attachs) {
			this.data.attachs = attachs;
		},
		initNewEntity() {
			this.$axios
				.get('/YatFeedback/InitNewEntity', {})
				.then((res) => {
				this.data = res.data;
				});
		},
		
	},
}
</script>

<style lang="less" scoped>
.col-detail {
	color: #333;
	display: flex;
	align-items: center;
	justify-content: space-between;

	.col-del {
		display: flex;
		align-items: center;
		img {
			width: 15px;
			height: 15px;
			margin-right: 5px;
		}
	}
}
.valueclass {
	color: rgb(0, 195, 224);
}
.dialog-content-text {
	height: auto;
}
</style>
